package com.foreknow.demo3;

import java.util.Scanner;

/**
 * 多选一
 */
public class MutipleIf {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入会员的积分: ");
        int score = input.nextInt();
        double discount = 0.0;
        if (score < 2000) {
            discount = 0.9;
        }else if(score >= 2000 && score < 4000) {
            discount = 0.8;
        }else if(score >= 4000 && score < 8000) {
            discount = 0.7;
        }else {
            discount = 0.6;
        }
        System.out.println("该会员的折扣是: " + discount);
    }
}
